package org.hzero.exam.infra.repository.impl;

import org.hzero.boot.platform.lov.annotation.ProcessLovValue;
import org.hzero.exam.api.dto.OrderItemDTO;
import org.hzero.exam.domain.repository.OrderItemRepository;
import org.hzero.exam.infra.mapper.OrderItemDTOMapper;
import org.hzero.export.vo.ExportParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 马旭阳
 * @date2019/8/6
 */
@Component
public class OrderItemRepositoryImpl implements OrderItemRepository {
    @Autowired
    private OrderItemDTOMapper orderItemDTOMapper;
    @Override
    @ProcessLovValue
    public List<OrderItemDTO> exportOrder(OrderItemDTO orderItem, ExportParam exportParam) {
        return this.selectAllDto();
    }
    @Override
    public List<OrderItemDTO> selectByOrderNumber(String orderNumber) {
        return orderItemDTOMapper.selectByOrderNumber(orderNumber);
    }

    @Override
    public List<OrderItemDTO> selectAllDto() {
        return orderItemDTOMapper.selectAllDto();
    }

}
